package com.qnbc.mystery.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qnbc.mystery.core.annotation.Excel;
import com.qnbc.mystery.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 运费模版对象 pms_feight_template
 *
 * @author guzj
 * @date 2024-01-24
 */
public class PmsFeightTemplate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String name;

    /**
     * 计费类型:0->按重量；1->按件数
     */
    @Excel(name = "计费类型:0->按重量；1->按件数")
    private Long chargeType;

    /**
     * 首重kg
     */
    @Excel(name = "首重kg")
    private BigDecimal firstWeight;

    /**
     * 首费（元）
     */
    @Excel(name = "首费", readConverterExp = "元=")
    private BigDecimal firstFee;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private BigDecimal continueWeight;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private BigDecimal continmeFee;

    /**
     * 目的地（省、市）
     */
    @Excel(name = "目的地", readConverterExp = "省=、市")
    private String dest;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setChargeType(Long chargeType) {
        this.chargeType = chargeType;
    }

    public Long getChargeType() {
        return chargeType;
    }

    public void setFirstWeight(BigDecimal firstWeight) {
        this.firstWeight = firstWeight;
    }

    public BigDecimal getFirstWeight() {
        return firstWeight;
    }

    public void setFirstFee(BigDecimal firstFee) {
        this.firstFee = firstFee;
    }

    public BigDecimal getFirstFee() {
        return firstFee;
    }

    public void setContinueWeight(BigDecimal continueWeight) {
        this.continueWeight = continueWeight;
    }

    public BigDecimal getContinueWeight() {
        return continueWeight;
    }

    public void setContinmeFee(BigDecimal continmeFee) {
        this.continmeFee = continmeFee;
    }

    public BigDecimal getContinmeFee() {
        return continmeFee;
    }

    public void setDest(String dest) {
        this.dest = dest;
    }

    public String getDest() {
        return dest;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("chargeType", getChargeType())
                .append("firstWeight", getFirstWeight())
                .append("firstFee", getFirstFee())
                .append("continueWeight", getContinueWeight())
                .append("continmeFee", getContinmeFee())
                .append("dest", getDest())
                .toString();
    }
}
